package cn.com.w.simple.demo.controller;

import cn.com.w.simple.demo.entity.UserInfo;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 首页 前端控制器
 */
@Controller
@RequestMapping("/home")
public class HomeController {

    /**
     * 进入首页
     *
     * @return
     */
    @GetMapping(value = "/enter")
    public String enterHome() {

        return "redirect:home.html";
    }


}
